package com.example.core.hql;

import com.example.core.hql.query.IQueryHQLPart;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class HQLBuilderImpl implements IHQLBuilder {
    @Resource
    private IQueryHQLPart queryHQLPart;

    @Override
    public HQLWrapper buildHQlWrapper(HQLInfo info) throws Exception {
        HQLInfo hqlInfo = queryHQLPart.buildQueryHQL(info);
        return new HQLWrapper(hqlInfo);
    }
}
